#ifndef PAGEPOWER_H
#define PAGEPOWER_H

#include    <QtGui>
#include    <QtCore>

class phasorDiagram : public QWidget
{
    Q_OBJECT

public:
    phasorDiagram(QWidget *parent = 0);

    double phase[6];

protected:
    void paintEvent(QPaintEvent *event);

    void drawCustomLine(QPainter&, double, double, const QString&, const QColor&);


};

class powerPage : public QWidget
{
    Q_OBJECT

public:
    powerPage(QWidget *parent = 0);

    phasorDiagram *paintArea;

    QLabel *labRMS[6];

    QLabel *labPowerA;
    QLabel *labPowerB;
    QLabel *labPowerC;

    QLabel *labPowerFactorA;
    QLabel *labPowerFactorB;
    QLabel *labPowerFactorC;

    QLabel *labPowerReactiveA;
    QLabel *labPowerReactiveB;
    QLabel *labPowerReactiveC;
};

#endif // PAGEPOWER_H
